﻿@{
    ViewBag.Title = "Login";
}

@if (ViewBag.WasFound == false)
{
    <script>alert("El usuario no ha sido encontrado o la contraseña es incorrecta")</script>
}

<div class="row">
    <div class="col s12">
        <h3>@ViewBag.Title</h3>
    </div>
</div>
<div class="row">
    <div class="col s12">
        @using (Html.BeginForm("Access", "Home", FormMethod.Post, new { Class = "col s12" }))
        {
            <div class="row">
                <div class="input-field col s12">
                    <input id="idNumero" name="numero" type="text" class="validate" maxlength="8" length="8" pattern="\d{8,8}" required title="Sólo números. 8 caracteres mínmo y máximo.">
                    <!--input id="idNumero" type="text" class="validate"-->
                    <label for="idNumero">N° de Cuenta</label>
                </div>
                <div class="input-field col s12">
                    <input id="idClave" name="clave" type="password" class="validate" maxlength="8" length="8" pattern=".{8,8}" required title="8 caracteres mínmo.">
                    <!--input id="idClave" type="password"-->
                    <label for="idClave">Clave alfanumérica</label>
                </div>
            </div>
            <div class="row">
                <div class="col s12">
                    @Html.ActionLink("¿Olvidó su clave alfanumérica?", "Forget")
                </div>
            </div>
            <div class="row">
                <div class="col s12">
                    <button class="btn waves-effect waves-light" type="submit">Enviar</button>
                </div>
            </div>
        }
    </div>
</div>